
const  TOOL= require('../../utils/util')//工具JS
var app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    userName: app.globalData.user.username,
    backgroundColor:app.globalData.currentBgColor,
    welcomeHello:app.globalData.welcomeHello,
    welcomeHelloStr: app.globalData.welcomeHelloStr,
    StatusBar: app.globalData.StatusBar,
    CustomBar: 74,
    SystemHeight: app.globalData.SystemHeight,
    SystemWidth: app.globalData.SystemWidth,
    ScreenHeight: app.globalData.ScreenHeight,//系统高度
    currentWeekDay:app.globalData.currentWeekDay,
    appName:app.globalData.appName,
    currentTimestamp: Date.parse(new Date()),
    currentDay:new Date().getDate(),
    PageCur:'home',
    elements: [
      {
      title: '表单通用',
      name: 'Common-Form',
      color: 'cyan',
      icon: 'newsfill',
      url:'../listinfo/add/add',
    },
    {
      title: '公告列表',
      name: 'Notice-Type-List',
      color: 'blue',
      icon: 'colorlens',
      url: '../listinfo/list/list',
    },
      {
        title: '汇报列表',
        name: 'report-Type-List',
        color: 'purple',
        icon: 'font',
        url: '../listinfo/list1/list1',
      },
    {
      title: '通讯录',
      name: 'icon-manage',
      color: 'mauve',
      icon: 'icon',
      url: '../my/addrbook/addrbook',
    },
      {
        title: '登陆页',
        name: 'button-manage',
        color: 'pink',
        icon: 'btn',
        url: '../../pages/login/login',
      },
      {
        title: '首页',
        name: 'button-design',
        color: 'green',
        icon: 'homefill',
        url: '../button/design',
      },
      {
        title: '日历组件',
        name: 'calendar',
        color: 'brown',
        icon: 'tagfill',
        url: '../calendar/calendar',
      },
      {
        title: '办公区域',
        name: 'avatar',
        color: 'red',
        icon: 'myfill',
        url: '../office/office',
      },
      {
        title: '流程列表',
        name: 'Activi-List',
        color: 'cyan',
        icon: 'newsfill',
        url: '../listinfo/activi-list/activi-list',
      },
    ],
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },
  /**跳转**/
  doJump:function(e){
    TOOL.doJump(e);
  },
   /****
   * 切换组件
   */
  NavChange(e) {
    this.setData({
      PageCur: e.currentTarget.dataset.cur
    });
  },
})